package com.crazyhat.crazyhat.dto;

import com.crazyhat.crazyhat.attribute.GenderEnum;
import com.crazyhat.crazyhat.attribute.UserTypeEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

//用户管理 返回用户信息
@Data
public class UserInfoDTO {
    private String name;
    private int studentId;
    private GenderEnum gender;
    private Integer age;
    private String email;
    private String avatarUrl;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    private UserTypeEnum userType;
}
